package com.click.app.dao.hibernate;

import com.click.app.dao.PantDesignDao;
import com.click.app.model.PantDesign;
import java.util.List;

/**
 * @author Joel Chuca Condo
 * @date 16/06/2009
 */
public class PantDesignDaoHibernate extends GenericDaoHibernate<PantDesign, Long> implements PantDesignDao{

    public PantDesignDaoHibernate() {
        super(PantDesign.class);
    }

    public List<PantDesign> findPantDesign(Long idModel, Long idModelSize, Long idMaterial){
        Object[] values={idModel, idModelSize, idMaterial};
        return getHibernateTemplate().find("from PantDesign where model.id=? AND modelSize.id=? AND material.id=?", values);
    }
}
